.login-container {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #ffff;
  position: relative;
}

.login-header {
  width: 100%;
  height: 65vh;
  background: url("@/assets/homeOther/login_bg.png") no-repeat center top;
  background-size: 100% auto;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 332.92px;
  padding-left: 8vw;
  box-sizing: border-box;

  .back-icon {
    position: absolute;
    top: 5.33vw;
    left: 23px;
    color: #000;
  }

  .welcome-text {
    font-weight: 500;
    font-size: 6vw;
    color: #ffffff;
    text-align: left;
    font-style: normal;
    text-transform: none;
    margin-bottom: 1vw;
    line-height: 1.2;

    &:first-of-type {
      margin-bottom: 1vw;
    }

    &:nth-of-type(2) {
      margin-bottom: 1vw;
    }
    &:nth-of-type(3) {
      margin-bottom: 0;
    }
  }

  .sub-title {
    width: 196px;
    height: 41px;
    font-family: "Source Han Sans CN", "Source Han Sans CN";
    font-weight: 400;
    font-size: 28px;
    color: #ffff;
    text-align: left;
    font-style: normal;
    text-transform: none;
    margin-left: 80px;
    margin-bottom: 87px;
  }
}

.login-form {
  position: absolute;
  bottom: 40.6px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  padding: 7vw;
  overflow-y: auto;
  box-sizing: border-box;
  z-index: 10;

  :deep(.van-field) {
    width: 84vw;
    height: 14.4vw;
    border-radius: 0;
    border: none;
    border-bottom: 0.27vw solid rgba(0, 0, 0, 0.1);
    // margin-bottom: 5.33vw;
    padding: 0;
    box-sizing: border-box;
    background: transparent !important;

    .van-field__label {
      font-size: 4.27vw;
      color: #333;
      width: 132px;
      line-height: 14.4vw;
    }
    .van-field__control {
      font-size: 4.27vw;
      height: 14.4vw;
      line-height: 14.4vw;
      padding: 0;
      background: transparent !important;
    }

    .van-field__value {
      align-items: center;
      height: 14.4vw;
      background: transparent !important;
    }

    input {
      background: transparent !important;
      background-color: transparent !important;
      -webkit-box-shadow: none !important;
      box-shadow: none !important;

      &:-webkit-autofill,
      &:-webkit-autofill:hover,
      &:-webkit-autofill:focus,
      &:-webkit-autofill:active {
        -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
        -webkit-text-fill-color: #333 !important;
        background-color: transparent !important;
        background: transparent !important;
        transition: background-color 5000s ease-in-out 0s;
      }
    }

    &::after {
      border: none;
    }
  }

  .phone-input {
    display: flex;
    align-items: center;

    .area-code {
      margin-right: 2.67vw;
      color: #333;
      font-size: 4.27vw;
      width: 132px;
      text-align: left;
      border-right: 1px solid rgba(0, 0, 0, 0.1);
      padding-right: 2.67vw;
      height: 5vw;
      line-height: 5vw;
      display: inline-flex;
      align-items: center;
      cursor: pointer;
      user-select: none;
      box-sizing: border-box;

      &:hover {
        background-color: #f5f5f5;
      }

      .van-icon {
        margin-left: 13px;
      }
    }
  }

  .send-code-btn {
    height: 41px;
    font-weight: 400;
    font-size: 28px;
    color: #2d67b0;
    text-align: right;
    font-style: normal;
    text-transform: none;
    border: none !important;
    border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: transparent !important;
    padding: 0 !important;
    padding-left: 2.67vw !important;
    margin: 0 !important;
    min-width: auto !important;
    line-height: normal !important;
    border-radius: 0px !important;

    &:disabled {
      color: #999999 !important;
      cursor: not-allowed !important;
      opacity: 0.6;
    }
  }

  .login-btn-wrapper {
    margin-top: 38px;
    display: flex;
    justify-content: center;
    margin-bottom: 8vw;
    position: relative;

    :deep(.login-btn) {
      height: 84px;
      width: 584px;
      border-radius: 10px;
      font-weight: 400;
      font-size: 4.8vw;
      color: #ffffff;
      text-align: center;
      font-style: normal;
      text-transform: none;
      background: #2d67b0;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }
  }
  .bottom-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 100px;
    .register-link {
      // text-align: center;
      font-size: 4.27vw;
      color: #999999;
      cursor: pointer;
      &:hover {
        color: #2d67b0;
      }

      &:active {
        color: #2d67b0;
      }
    }
    .switch-login-type {
      font-size: 4.27vw;
      color: #999999;
      &:hover {
        color: #2d67b0;
      }

      &:active {
        color: #2d67b0;
      }
    }
  }
}

/* 移除点击效果 */
.send-code-btn::before {
  display: none !important;
}

/* loading组件样式 */
.loading-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  z-index: 9999;
}
